package model;

// Representation of a coordinate in a 2D space
public class Point {

	int x;
	int y;
	
	public Point(int x_, int y_){
		x = x_;
		y = y_;
	}

	public int getX() {
		return x;
	}

	public void setX(int x) {
		this.x = x;
	}

	public int getY() {
		return y;
	}

	public void setY(int y) {
		this.y = y;
	}
	
	public String toString(){
		return "("+this.x+","+this.y+")";
	}
	
	public boolean equals(Point p) {
		if(this.x == p.getX() && this.y == p.getY()) {
			return true;
		} else {
			return false;
		}
	}
}
